﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RandomStudent.Mab.Collections
{
    public class ManageObjectCollection<TItem> : ICollection, IEnumerable<KeyValuePair<string, TItem>>, IEnumerable
    {
        private Dictionary<string, TItem> Items;
        private int _count;

        public int Count
        {
            get { return _count; }
            set { _count = value; }
        }

        public event EventHandler Added;
        public event EventHandler Removed;

        public void Add(TItem item)
        {

        }
        public void Add(TItem item, string id)
        {

        }

        public TItem AddNew(Type typeToBuild, string id)
        {
            TItem item = default(TItem);

            return item;
        }

        public IEnumerator<KeyValuePair<string, TItem>> GetEnumerator()
        {
            throw new NotImplementedException();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            throw new NotImplementedException();
        }

        public void CopyTo(Array array, int index)
        {
            throw new NotImplementedException();
        }

        public bool IsSynchronized
        {
            get { throw new NotImplementedException(); }
        }

        public object SyncRoot
        {
            get { throw new NotImplementedException(); }
        }
    }
}
